home *** CD-ROM | disk | FTP | other *** search
- Path: newsfeed.direct.ca!usenet
- From: qjackson@direct.ca
- Newsgroups: comp.lang.c++
- Subject: Re: Escape Sequences in c++
- Date: Wed, 07 Feb 1996 15:46:08 GMT
- Organization: Parsepolis Software
- Message-ID: <4fahdh$o50@aphex.direct.ca>
- References: <3113aa29.14180305@news.flex.net>
- Reply-To: qjackson@direct.ca
- NNTP-Posting-Host: 204.174.248.79
- X-Newsreader: Forte Free Agent 1.0.82
-
- Awitas@flex.net wrote:
-
- > Does anyone know how to use the Ansi.sys escape sequences in
- >c++? Specifically the cursor-control sequences. Any help would be
- >greatly appreciated.
-
- >Adam Witas
- >awitas@flex.net
-
- Try:
-
- #define CLS cout << "\x1B[2J"
- #define LOCATE(row, col) cout << "\x1B[" << row << ";" << col << "H"
-
- This gives you a good place to start.... (The rest are fairly
- similarly done.)
-
-
- Cheers,
-
-
-
-
-
- --
- |
- Parsepolis Software | Quinn Tyler Jackson
- "ParseCity" | (aka 'Jamshid')
- >--------------------------| qjackson@direct.ca
- |---------------------->
-
-